package com.eeepay.eeepay_v2.model;

import android.graphics.Bitmap;

import com.eeepay.eeepay_v2.R;

import java.io.Serializable;

/**
 * Created by Ching on 2016/5/4 12:22.
 * 进件照片实体类
 */
public class PaperFile implements Serializable {

    private String tipName;//示例图说明
    private String fileName;//图片名称
    private byte[] file;//文件
    private String filePath;//路径
    private String remark;//说明
    private String itemId;//id
    private String photo;//1.只允许拍照；2.拍照和相册
    private int tipImage;//照片对应的进件示例图
    private Bitmap bitmap;

    public PaperFile() {
    }

    public String getTipName() {
        return tipName;
    }

    public void setTipName(String tipName) {
        this.tipName = tipName;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public PaperFile(String fileName) {
        this.fileName = fileName;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public byte[] getFile() {
        return file;
    }

    public void setFile(byte[] file) {
        this.file = file;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public String getItemId() {
        return itemId;
    }

    public void setItemId(String itemId) {
        this.itemId = itemId;
        switch (itemId) {
            case "8":
                tipImage = R.drawable.scsfz;//手持身份证
                break;
            case "9":
                tipImage = R.drawable.sfzzm;//身份证正面
                break;
            case "10":
                tipImage = R.drawable.sfzfm;//身份证反面
                break;
            case "11":
                tipImage = R.drawable.yhkzm;//银行卡正面
                break;
            case "12":
                tipImage = R.drawable.yyzz;//营业执照
                break;
            case "13":
                tipImage = R.drawable.mtz;//门头照
                break;
            case "14":
                tipImage = R.drawable.dnz;//店内照
                break;
            case "16":
                tipImage = R.drawable.htyz;//活体验证
                break;
        }
    }

    public int getTipImage() {
        return tipImage;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public Bitmap getBitmap() {
        return bitmap;
    }

    public void setBitmap(Bitmap bitmap) {
        this.bitmap = bitmap;
    }
}
